package com.lfd.controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lfd.entity.TjDaoGou;
import com.lfd.service.TjDaoGouService;
import com.lfd.util.Result;
import com.lfd.vo.TjDaoGouVo;
import com.sun.istack.internal.logging.Logger;

@Controller
@RequestMapping("/dg")
public class TjDaoGouController {
	private Logger logger = Logger.getLogger(TjDaoGouController.class);
	@Autowired
	private TjDaoGouService  daoGouService;
	
	/**
	 * 查询所有
	 * @param pjProduct
	 * @return
	 */
	@ResponseBody
	@RequestMapping("dgqb")
	public Result pj(TjDaoGou daoGou) {
		List<TjDaoGouVo> queryList =daoGouService.selectList(daoGou);
		
		return new Result("0", "成功", 10, queryList);
		
	}
	
	



	
	
}
